import QtQuick 2.0
import QtQuick.Controls 2.3
import "storage.js" as Storage

Item {
    id:root
    width: 850
    height: 580
    property real minSize:  Math.min(width/850, height/580)
    property real textSize:  40*minSize
    property color majorColor: "#44fdfd"

    onFocusChanged:{
        if(!focus) return
        refurbishA()
        refurbishB()
    }

    function readRegSingalLim(handle, sqlName){
        handle.valueText = Storage.readRegSingalLimit(sqlName)
    }
    function writeRegSingalLim(handle, sqlName){
        Storage.writeRegSingalLimit(handle.valueText, sqlName)
    }
    function readRegScope(handle, sqlName){
        handle.tipText = Storage.readRegScope(sqlName)
    }

    function refurbishA()
    {
        readRegSingalLim(tw1_a, "A套PSS TW1")
        readRegSingalLim(tw2_a, "A套PSS TW2")
        readRegSingalLim(tw3_a, "A套PSS TW3")
        readRegSingalLim(tw4_a, "A套PSS TW4")
        readRegSingalLim(ks1_a, "A套PSS KS1")
        readRegSingalLim(ks2_a, "A套PSS KS2")
        readRegSingalLim(ks3_a, "A套PSS KS3")
        readRegSingalLim(xe_a, "A套PSS Deg Xe")
        readRegSingalLim(xq_a, "A套PSS Deg Xq")
        readRegSingalLim(kv1_a, "A套PSS Deg Kv1")
        readRegSingalLim(t7_a, "A套PSS Filter T7")
        readRegSingalLim(t8_a, "A套PSS Notch T8")
        readRegSingalLim(t9_a, "A套PSS Notch T9")
        readRegSingalLim(nm_a, "A套PSS Notch M")
        readRegSingalLim(nn_a, "A套PSS Notch N")
        readRegSingalLim(t1_a, "A套PSS T1T2 T1")
        readRegSingalLim(t2_a, "A套PSS T1T2 T2")
        readRegSingalLim(t3_a, "A套PSS T3T4 T3")
        readRegSingalLim(t4_a, "A套PSS T3T4 T4")
        readRegSingalLim(t10_a, "A套PSS T10T11 T10")
        readRegSingalLim(t11_a, "A套PSS T10T11 T11")
        readRegSingalLim(pssin_a, "A套PSS投入值")
        readRegSingalLim(pssout_a, "A套PSS退出值")
        readRegSingalLim(psslim_a, "A套PSS限幅值")
    }
    function refurbishB()
    {
        readRegSingalLim(tw1_b, "B套PSS TW1")
        readRegSingalLim(tw2_b, "B套PSS TW2")
        readRegSingalLim(tw3_b, "B套PSS TW3")
        readRegSingalLim(tw4_b, "B套PSS TW4")
        readRegSingalLim(ks1_b, "B套PSS KS1",)
        readRegSingalLim(ks2_b, "B套PSS KS2",)
        readRegSingalLim(ks3_b, "B套PSS KS3",)
        readRegSingalLim(xe_b, "B套PSS Deg Xe")
        readRegSingalLim(xq_b, "B套PSS Deg Xq")
        readRegSingalLim(kv1_b, "B套PSS Deg Kv1")
        readRegSingalLim(t7_b, "B套PSS Filter T7")
        readRegSingalLim(t8_b, "B套PSS Notch T8")
        readRegSingalLim(t9_b, "B套PSS Notch T9")
        readRegSingalLim(nm_b, "B套PSS Notch M")
        readRegSingalLim(nn_b, "B套PSS Notch N")
        readRegSingalLim(t1_b, "B套PSS T1T2 T1")
        readRegSingalLim(t2_b, "B套PSS T1T2 T2")
        readRegSingalLim(t3_b, "B套PSS T3T4 T3")
        readRegSingalLim(t4_b, "B套PSS T3T4 T4")
        readRegSingalLim(t10_b, "B套PSS T10T11 T10")
        readRegSingalLim(t11_b, "B套PSS T10T11 T11")
        readRegSingalLim(pssin_b, "B套PSS投入值")
        readRegSingalLim(pssout_b, "B套PSS退出值")
        readRegSingalLim(psslim_b, "B套PSS限幅值")
    }

    Timer{
        interval: 2000
        repeat: false
        triggeredOnStart: false
        running: true
        onTriggered: {
            readRegScope(tw1_a, "A套PSS TW1")
            readRegScope(tw2_a, "A套PSS TW2")
            readRegScope(tw3_a, "A套PSS TW3")
            readRegScope(tw4_a, "A套PSS TW4")
            readRegScope(ks1_a, "A套PSS KS1")
            readRegScope(ks2_a, "A套PSS KS2")
            readRegScope(ks3_a, "A套PSS KS3")
            readRegScope(xe_a, "A套PSS Deg Xe")
            readRegScope(xq_a, "A套PSS Deg Xq")
            readRegScope(kv1_a, "A套PSS Deg Kv1")
            readRegScope(t7_a, "A套PSS Filter T7")
            readRegScope(t8_a, "A套PSS Notch T8")
            readRegScope(t9_a, "A套PSS Notch T9")
            readRegScope(nm_a, "A套PSS Notch M")
            readRegScope(nn_a, "A套PSS Notch N")
            readRegScope(t1_a, "A套PSS T1T2 T1")
            readRegScope(t2_a, "A套PSS T1T2 T2")
            readRegScope(t3_a, "A套PSS T3T4 T3")
            readRegScope(t4_a, "A套PSS T3T4 T4")
            readRegScope(t10_a, "A套PSS T10T11 T10")
            readRegScope(t11_a, "A套PSS T10T11 T11")
            readRegScope(pssin_a, "A套PSS投入值")
            readRegScope(pssout_a, "A套PSS退出值")
            readRegScope(psslim_a, "A套PSS限幅值")
            readRegScope(tw1_b, "B套PSS TW1")
            readRegScope(tw2_b, "B套PSS TW2")
            readRegScope(tw3_b, "B套PSS TW3")
            readRegScope(tw4_b, "B套PSS TW4")
            readRegScope(ks1_b, "B套PSS KS1",)
            readRegScope(ks2_b, "B套PSS KS2",)
            readRegScope(ks3_b, "B套PSS KS3",)
            readRegScope(xe_b, "B套PSS Deg Xe")
            readRegScope(xq_b, "B套PSS Deg Xq")
            readRegScope(kv1_b, "B套PSS Deg Kv1")
            readRegScope(t7_b, "B套PSS Filter T7")
            readRegScope(t8_b, "B套PSS Notch T8")
            readRegScope(t9_b, "B套PSS Notch T9")
            readRegScope(nm_b, "B套PSS Notch M")
            readRegScope(nn_b, "B套PSS Notch N")
            readRegScope(t1_b, "B套PSS T1T2 T1")
            readRegScope(t2_b, "B套PSS T1T2 T2")
            readRegScope(t3_b, "B套PSS T3T4 T3")
            readRegScope(t4_b, "B套PSS T3T4 T4")
            readRegScope(t10_b, "B套PSS T10T11 T10")
            readRegScope(t11_b, "B套PSS T10T11 T11")
            readRegScope(pssin_b, "B套PSS投入值")
            readRegScope(pssout_b, "B套PSS退出值")
            readRegScope(psslim_b, "B套PSS限幅值")
        }
    }


    SwipeView
    {
        id: sv_this
        width:parent.width
        height: parent.height*0.85
        clip: true
        Component.onCompleted:{contentItem.highlightMoveDuration = 0}       //将移动时间设为0

        onCurrentIndexChanged: {
            if(sv_this.currentIndex===0) {button.checked=true;button2.checked=false}
            if(sv_this.currentIndex===1) {button2.checked=true;button.checked=false}
        }

        Item{
            Image {
                y: 80*root.minSize
                width: sourceSize.width*0.72*root.minSize
                height: sourceSize.height*0.72*root.minSize
                anchors.horizontalCenter: parent.horizontalCenter
                source: "../picture/PSS_New.png"
                fillMode: Image.PreserveAspectFit
                property real textSize: 18*root.minSize

                EXC_Normal_DoubleTextSytle2 {
                    id: ks1_a
                    x: 55*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "Ks1:"
                }
                EXC_Normal_DoubleTextSytle2 {
                    id: t1_a
                    x: 160*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "T1:"
                }
                EXC_Normal_DoubleTextSytle2 {
                    id: t2_a
                    x: 160*root.minSize
                    y: 82*root.minSize
                    textSize: parent.textSize
                    funcText: "T2:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t3_a
                    x: 285*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "T3:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t4_a
                    x: 285*root.minSize
                    y: 82*root.minSize
                    textSize: parent.textSize
                    funcText: "T4:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t10_a
                    x: 407*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "T10:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t11_a
                    x: 407*root.minSize
                    y: 82*root.minSize
                    textSize: parent.textSize
                    funcText: "T11:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: pssout_a
                    x: 500*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "PSS退出值:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: pssin_a
                    x: 500*root.minSize
                    y: 0
                    textSize: parent.textSize
                    funcText: "PSS投入值:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: psslim_a
                    x: 530*root.minSize
                    y: 110*root.minSize
                    textSize: parent.textSize
                    funcText: "PSS限幅值:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw1_a
                    x: 80*root.minSize
                    y: 220*root.minSize
                    textSize: parent.textSize
                    funcText: "TW1:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw2_a
                    x: 195*root.minSize
                    y: 220*root.minSize
                    textSize: parent.textSize
                    funcText: "TW2:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t8_a
                    x: 475*root.minSize
                    y: 139*root.minSize
                    textSize: parent.textSize
                    funcText: "T8:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t9_a
                    x: 475*root.minSize
                    y: 235*root.minSize
                    textSize: parent.textSize
                    funcText: "T9:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: nn_a
                    x: 600*root.minSize
                    y: 145*root.minSize
                    textSize: parent.textSize
                    funcText: "Notch N:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: nm_a
                    x: 600*root.minSize
                    y: 241*root.minSize
                    textSize: parent.textSize
                    funcText: "Notch M:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: ks2_a
                    x: 285*root.minSize
                    y: 273*root.minSize
                    textSize: parent.textSize
                    funcText: "Ks2:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: ks3_a
                    x: 433*root.minSize
                    y: 263*root.minSize
                    textSize: parent.textSize
                    funcText: "Ks3:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw3_a
                    x: 80*root.minSize
                    y: 345*root.minSize
                    textSize: parent.textSize
                    funcText: "TW3:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw4_a
                    x: 190*root.minSize
                    y: 345*root.minSize
                    textSize: parent.textSize
                    funcText: "TW4:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t7_a
                    x: 300*root.minSize
                    y: 345*root.minSize
                    textSize: parent.textSize
                    funcText: "T7:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: kv1_a
                    x: 400*root.minSize
                    y: 330*root.minSize
                    textSize: parent.textSize
                    funcText: "Kv1:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: xe_a
                    x: 500*root.minSize
                    y: 330*root.minSize
                    textSize: parent.textSize
                    funcText: "Xe:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: xq_a
                    x: 600*root.minSize
                    y: 330*root.minSize
                    textSize: parent.textSize
                    funcText: "Xq:"
                }
            }

            Text {
                y: 30*root.minSize
                color: majorColor
                text: qsTr("A通道PSS参数")
                anchors.horizontalCenter: parent.horizontalCenter
                verticalAlignment: Text.AlignVCenter
                horizontalAlignment: Text.AlignHCenter
                font.pixelSize: 40*root.minSize
            }

            EXC_Normal_BtnUncheckSecret_highStyle {
                id: btn_ASave
                nameFontpixelSize: 25*root.minSize
                y: 440*root.minSize
                width: 140*root.minSize
                height: 50*root.minSize
                anchors.right: parent.right
                anchors.rightMargin: 10
                nameText: qsTr("保存参数")

                onClicked: {
                    writeRegSingalLim(tw1_a, "A套PSS TW1")
                    writeRegSingalLim(tw2_a, "A套PSS TW2")
                    writeRegSingalLim(tw3_a, "A套PSS TW3")
                    writeRegSingalLim(tw4_a, "A套PSS TW4")
                    writeRegSingalLim(ks1_a, "A套PSS KS1")
                    writeRegSingalLim(ks2_a, "A套PSS KS2")
                    writeRegSingalLim(ks3_a, "A套PSS KS3")
                    writeRegSingalLim(xe_a, "A套PSS Deg Xe")
                    writeRegSingalLim(xq_a, "A套PSS Deg Xq")
                    writeRegSingalLim(kv1_a, "A套PSS Deg Kv1")
                    writeRegSingalLim(t7_a, "A套PSS Filter T7")
                    writeRegSingalLim(t8_a, "A套PSS Notch T8")
                    writeRegSingalLim(t9_a, "A套PSS Notch T9")
                    writeRegSingalLim(nm_a, "A套PSS Notch M")
                    writeRegSingalLim(nn_a, "A套PSS Notch N")
                    writeRegSingalLim(t1_a, "A套PSS T1T2 T1")
                    writeRegSingalLim(t2_a, "A套PSS T1T2 T2")
                    writeRegSingalLim(t3_a, "A套PSS T3T4 T3")
                    writeRegSingalLim(t4_a, "A套PSS T3T4 T4")
                    writeRegSingalLim(t10_a, "A套PSS T10T11 T10")
                    writeRegSingalLim(t11_a, "A套PSS T10T11 T11")
                    writeRegSingalLim(pssin_a, "A套PSS投入值")
                    writeRegSingalLim(pssout_a, "A套PSS退出值")
                    writeRegSingalLim(psslim_a, "A套PSS限幅值")
                    timerA_ass.start()
                }

                Timer{
                    id:timerA_ass
                    interval: 1000
                    repeat: true
                    triggeredOnStart: false
                    property int thisCounter: 0
                    onTriggered: {
                        refurbishA()
                        thisCounter++
                        if(thisCounter>3) {
                            thisCounter=0
                            stop()
                        }
                    }
                }
            }

            onFocusChanged:{
                if(!focus) return
                refurbishA()
            }
        }

        Item{
            Image {
                y: 80*root.minSize
                width: sourceSize.width*0.72*root.minSize
                height: sourceSize.height*0.72*root.minSize
                anchors.horizontalCenter: parent.horizontalCenter
                source: "../picture/PSS_New.png"
                fillMode: Image.PreserveAspectFit
                property real textSize: 18*root.minSize

                EXC_Normal_DoubleTextSytle2 {
                    id: ks1_b
                    x: 55*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "Ks1:"
                }
                EXC_Normal_DoubleTextSytle2 {
                    id: t1_b
                    x: 160*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "T1:"
                }
                EXC_Normal_DoubleTextSytle2 {
                    id: t2_b
                    x: 160*root.minSize
                    y: 82*root.minSize
                    textSize: parent.textSize
                    funcText: "T2:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t3_b
                    x: 285*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "T3:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t4_b
                    x: 285*root.minSize
                    y: 82*root.minSize
                    textSize: parent.textSize
                    funcText: "T4:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t10_b
                    x: 407*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "T10:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t11_b
                    x: 407*root.minSize
                    y: 82*root.minSize
                    textSize: parent.textSize
                    funcText: "T11:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: pssout_b
                    x: 500*root.minSize
                    y: 20*root.minSize
                    textSize: parent.textSize
                    funcText: "PSS退出值:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: pssin_b
                    x: 500*root.minSize
                    y: 0
                    textSize: parent.textSize
                    funcText: "PSS投入值:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: psslim_b
                    x: 530*root.minSize
                    y: 110*root.minSize
                    textSize: parent.textSize
                    funcText: "PSS限幅值:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw1_b
                    x: 80*root.minSize
                    y: 220*root.minSize
                    textSize: parent.textSize
                    funcText: "TW1:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw2_b
                    x: 195*root.minSize
                    y: 220*root.minSize
                    textSize: parent.textSize
                    funcText: "TW2:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t8_b
                    x: 475*root.minSize
                    y: 139*root.minSize
                    textSize: parent.textSize
                    funcText: "T8:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t9_b
                    x: 475*root.minSize
                    y: 235*root.minSize
                    textSize: parent.textSize
                    funcText: "T9:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: nn_b
                    x: 600*root.minSize
                    y: 145*root.minSize
                    textSize: parent.textSize
                    funcText: "Notch N:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: nm_b
                    x: 600*root.minSize
                    y: 241*root.minSize
                    textSize: parent.textSize
                    funcText: "Notch M:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: ks2_b
                    x: 285*root.minSize
                    y: 273*root.minSize
                    textSize: parent.textSize
                    funcText: "Ks2:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: ks3_b
                    x: 433*root.minSize
                    y: 263*root.minSize
                    textSize: parent.textSize
                    funcText: "Ks3:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw3_b
                    x: 80*root.minSize
                    y: 345*root.minSize
                    textSize: parent.textSize
                    funcText: "TW3:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: tw4_b
                    x: 190*root.minSize
                    y: 345*root.minSize
                    textSize: parent.textSize
                    funcText: "TW4:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: t7_b
                    x: 300*root.minSize
                    y: 345*root.minSize
                    textSize: parent.textSize
                    funcText: "T7:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: kv1_b
                    x: 400*root.minSize
                    y: 330*root.minSize
                    textSize: parent.textSize
                    funcText: "Kv1:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: xe_b
                    x: 500*root.minSize
                    y: 330*root.minSize
                    textSize: parent.textSize
                    funcText: "Xe:"
                }

                EXC_Normal_DoubleTextSytle2 {
                    id: xq_b
                    x: 600*root.minSize
                    y: 330*root.minSize
                    textSize: parent.textSize
                    funcText: "Xq:"
                }
            }

            Text {
                y: 30*root.minSize
                color: majorColor
                text: qsTr("B通道PSS参数")
                anchors.horizontalCenter: parent.horizontalCenter
                verticalAlignment: Text.AlignVCenter
                horizontalAlignment: Text.AlignHCenter
                font.pixelSize: 40*root.minSize
            }

            EXC_Normal_BtnUncheckSecret_highStyle {
                id: btn_BSave
                nameFontpixelSize: 25*root.minSize
                y: 440*root.minSize
                width: 140*root.minSize
                height: 50*root.minSize
                anchors.right: parent.right
                anchors.rightMargin: 10
                nameText: qsTr("保存参数")

                onClicked: {
                    writeRegSingalLim(tw1_b, "B套PSS TW1")
                    writeRegSingalLim(tw2_b, "B套PSS TW2")
                    writeRegSingalLim(tw3_b, "B套PSS TW3")
                    writeRegSingalLim(tw4_b, "B套PSS TW4")
                    writeRegSingalLim(ks1_b, "B套PSS KS1",)
                    writeRegSingalLim(ks2_b, "B套PSS KS2",)
                    writeRegSingalLim(ks3_b, "B套PSS KS3",)
                    writeRegSingalLim(xe_b, "B套PSS Deg Xe")
                    writeRegSingalLim(xq_b, "B套PSS Deg Xq")
                    writeRegSingalLim(kv1_b, "B套PSS Deg Kv1")
                    writeRegSingalLim(t7_b, "B套PSS Filter T7")
                    writeRegSingalLim(t8_b, "B套PSS Notch T8")
                    writeRegSingalLim(t9_b, "B套PSS Notch T9")
                    writeRegSingalLim(nm_b, "B套PSS Notch M")
                    writeRegSingalLim(nn_b, "B套PSS Notch N")
                    writeRegSingalLim(t1_b, "B套PSS T1T2 T1")
                    writeRegSingalLim(t2_b, "B套PSS T1T2 T2")
                    writeRegSingalLim(t3_b, "B套PSS T3T4 T3")
                    writeRegSingalLim(t4_b, "B套PSS T3T4 T4")
                    writeRegSingalLim(t10_b, "B套PSS T10T11 T10")
                    writeRegSingalLim(t11_b, "B套PSS T10T11 T11")
                    writeRegSingalLim(pssin_b, "B套PSS投入值")
                    writeRegSingalLim(pssout_b, "B套PSS退出值")
                    writeRegSingalLim(psslim_b, "B套PSS限幅值")
                    timerB_ass.start()

                }

                Timer{
                    id:timerB_ass
                    interval: 1000
                    repeat: true
                    triggeredOnStart: false
                    property int thisCounter: 0
                    onTriggered: {
                        refurbishB()
                        thisCounter++
                        if(thisCounter>3) {
                            thisCounter=0
                            stop()
                        }
                    }
                }

            }

            onFocusChanged:{
                if(!focus) return
                refurbishB()
            }
        }
    }

    EXC_Normal_BtnSytle {
        id: button
        nameText: qsTr("A通道")
        width: parent.width*0.15
        height: parent.height*0.09
        checked: true
        anchors.left: parent.left
        anchors.leftMargin: parent.width*0.1
        anchors.topMargin: parent.height/32
        anchors.top: sv_this.bottom
        onClicked: {
            if(sv_this.currentIndex===0) checked = true;
            else sv_this.currentIndex = 0
        }
    }

    EXC_Normal_BtnSytle {
        id: button2
        nameText: qsTr("B通道")
        width: parent.width*0.15
        height: parent.height*0.09
        anchors.left: parent.left
        anchors.leftMargin: parent.width*0.43
        anchors.topMargin: parent.height/32
        anchors.top: sv_this.bottom
        onClicked: {
            if(sv_this.currentIndex===1) checked = true;
            else sv_this.currentIndex = 1
        }
    }

    EXC_Normal_BtnUncheckStyle {
        id: button3
        nameText: qsTr("返回")
        nameFontpixelSize: 30*Math.min(root.width/850, root.height/580)
        width: parent.width*0.15
        height: parent.height*0.09
        anchors.left: parent.left
        anchors.leftMargin: parent.width*0.75
        anchors.topMargin: parent.height/32
        anchors.top: sv_this.bottom
        onClicked: {
            sw.currentIndex = 0
        }
    }
}

/*##^##
Designer {
    D{i:0;formeditorZoom:1.25}
}
##^##*/
